package com.project.service.impl;

import com.project.bean.AssessBean;
import com.project.dao.IAssessDao;
import com.project.service.IAssessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AssessServiceImpl implements IAssessService {
    @Autowired
    private IAssessDao dao;
    @Override
    public List<AssessBean> add(AssessBean assess) {
        dao.add(assess);
        return dao.findByProduct(assess.getGoods().getId());
    }
}
